﻿using MongoDB.Bson.Serialization.Attributes;
using Sustainalytics.Alerts.Entities;
using Sustainalytics.Entities;
using System;

namespace Sustainalytics.ClientDW.Entities.Alerts
{
    public class Alert : IEntity
    {
        public Guid Id { get; set; }
        public DateTime Created { get; set; }
        public DateTime LastUpdated { get; set; }
        public int LevelOfImportance { get; set; }
        public AlertChangeType AlertType { get; set; }
        public TypeOfChange TypeOfChange { get; set; }
        public string Rationale { get; set; }
        public Guid CompanyId { get; set; }

        [BsonIgnore]
        public CompanyAlert CompanyAlert { get; set; }

        public AlertData Data { get; set; }
    }
}
